<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		function Cat(name,color){
	　　　　this.name = name;
	　　　　this.color = color;
	　　　　
	　　}
		Cat.prototype.type = "猫科动物";
　　		Cat.prototype.eat = function(){alert("吃老鼠")};
		var cat1 = new Cat("大毛","黄色");
　　		var cat2 = new Cat("二毛","黑色");
		
		
		
		
		if (window==top){
			//console.log(window)
			console.log(top)
		}
		//top.location.href =window.location.href; // 如果不是，将top对象的网址自动导向被嵌入网页的网址
	</script>
</html>
